﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Lib.Paging;
using SDT.Model;
using SDT.Systems;
using System.Web.Mvc;
using System.Web.UI.WebControls;
using SDT.Site.Properties;

namespace SDT.Site.ViewModels
{
    
    public class ProductInputModel
    {
        public string Email { get; set; }
        public string FullName { get; set; }
        public string Address { get; set; }
        public string Phone { get; set; }
        public string Company { get; set; }
        public string Yahoo { get; set; }
        public string Skype { get; set; }

        private List<ProductCategory> _category = new List<ProductCategory>();
        public List<ProductCategory> Categories
        {
            get
            {
                return this._category;
            }
            set
            {
                if (value != null)
                    this._category = value;
            }
        }

        private List<SelectListItem> _listCity = new List<SelectListItem>();
        public List<SelectListItem> ListCity
        {
            get
            {
                return this._listCity;
            }
            set
            {
                if (value != null)
                    this._listCity = value;
            }
        }

        private List<SelectListItem> _listDistrict = new List<SelectListItem>();
        public List<SelectListItem> ListDistrict
        {
            get
            {
                return this._listDistrict;
            }
            set
            {
                if (value != null)
                    this._listDistrict = value;
            }
        }

        private List<SelectListItem> _listType = new List<SelectListItem>();
        public List<SelectListItem> ListType
        {
            get;
            set;
        }

        private List<SelectListItem> _listProject = new List<SelectListItem>();
        public List<SelectListItem> ListProject
        {
            get
            {
                return this._listProject;
            }
            set
            {
                if (value != null)
                    this._listProject = value;
            }
        }
        // Created by Vietlv
        // Created date: 28/07/2011
        // Description: Select crrent CostType of product
        public string CurrentCurrency;
        public string CurrentUnitCost;
        public string CurrentDirection;
        public Dictionary<object, object> ListCurrency = new Dictionary<object, object>();
        public Dictionary<object, object> ListUnitCost = new Dictionary<object, object>();
        public Dictionary<object, object> listProductDirection = new Dictionary<object, object>();
        public Dictionary<object, object> listProductExpire = new Dictionary<object, object>();

        public List<string> ListFile
        {
            get;
            set;
        }

        private List<ProductAttribute> _listProductAttribute = new List<ProductAttribute>();
        public List<ProductAttribute> ListProductAtribute
        {
            get
            {
                return this._listProductAttribute;
            }
            set
            {
                if (value != null)
                    this._listProductAttribute = value;
            }
        }

        private List<int> _listProductAttributeID = new List<int>();
        public List<int> ListProductAttributeID
        {
            get
            {
                return this._listProductAttributeID;
            }
            set
            {
                if (value != null)
                    this._listProductAttributeID = value;
            }
        }

        private Product _product = new Product();
        public Product Product
        {
            get
            {
                return this._product;
            }
            set
            {
                if (value != null)
                    this._product = value;
            }
        }

        public int CityID
        {
            get;
            set;
        }

        public int DistrictID
        {
            get;
            set;    
        }

        public int CatID
        {
            get;
            set;
        }

        public int TypeID
        {
            get;
            set;
        }

        public string ImageRootUrl
        {
            get;
            set;
        }

        public string GoogleAPI
        {
            get
            {
                return Settings.Default.GoogleAPI;
            }
        }
    }
}
